#{extends 'Houses/base.html' /}
#{set title:'add-Houses' /}
		<!-- 路径导航 -->
		<ol class="breadcrumb">
			<li><a href="#">首页</a></li>
			<li ><a href="">社区租房</a></li>
			<li class="active">出租信息填写</li>
		</ol>
<div class="alert alert-warning alert-dismissible" role="alert">
  <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  <p class="bg-warning">
		若您有登录账号请点击<a href="@{Application.login}">登录</a>后发布信息，没有账号可点击<a href="@{Application.register}">注册</a>
</p>
 
</div>
<div class="main-content">
  #{if flash.uploadError}
  <p class="alert alert-success" style="text-align:center">
	${flash.uploadError}
	</p>
 	#{/if}
 
	
	<form class="form-fill" action="@{Houses.saveHouse()}" method="post" enctype="multipart/form-data">
		<table class="table table-hover  table-condensed">
			<tbody>
				<tr>
					<th><em>*</em><span>出租方式</span></th>
					<td>
						<label>
						<input type="radio" name="house.way"  value="整租" checked >
						    整租
						</label>
						<label>
						<input type="radio" name="house.way" id="" value="合租">
						   合租
						</label>
						<span></span>
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>您的身份</span></th>
					<td>
						<input type="radio" name="house.indentity" value="个人" checked/>个人&nbsp;&nbsp;&nbsp;
						<input type="radio" name="house.indentity" value="经纪人" />经纪人
						<span></span>
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>联系人</span></th>
					<td>
						<label class="sr-only" for="contact">联系人</label>
	    				<input type="text" class="form-control required"  name="house.contacts" id="contract" value="庄祥鹏" />
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>联系电话</span></th>
					<td>
						<label class="sr-only" for="phone">联系电话</label>
	    				<input type="text" class="form-control required" id="phone" name="house.phone" value="13560419054">
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>小区</span></th>
					<td>
	    				<input type="text" class="form-control" id="" name="house.community" value="华山小区">
	    				<span></span>
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>详细地址</span></th>
					<td>
						
      				<input type="text" class="form-control required" id="" name="house.address" value="22-305"/>
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>户型</span></th>
					<td>
		   				<label>
		   					<input type="text" class="form-control required num-only" name="house.bedRoom" value="1"/>
		   				室
		   				</label>		   				
		   				<label>
		   					<input type="text" class="form-control required num-only" name="house.livingRoom" value="1">
		   					厅
		   				</label>						
						<label>
		   					<input type="text" class="form-control required num-only" name="house.bathRoom" value="1">
		   					卫	
		   				</label>
		   				<label>
		   					<input type="text" class="form-control required num-only" name="house.square" value="30">
		   					平方	
		   				</label>		   								
	    				<span></span>
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>楼层</span></th>
					<td class="beLegal">
		   				<label>
		   					<input type="text" class="form-control required num-only" name="house.currentFloor" value="3"/>
		   				层/共
		   				</label>		   				
		   				<label>
		   					<input type="text" class="form-control num-only" name="house.countFloor" value="5">
		   					层
		   				</label>								   								
	    				<span></span>
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>房屋情况</span></th>
					<td>
			   				<select name="house.decorationSituation" >
							<option value="豪华装修">豪华装修</option>
							<option value="精装修">精装修</option>
							<option value="中等">中等</option>
							<option value="简单">简单</option>
							<option value="毛胚">毛胚</option>
							</select>
		   			
		   					<select name="house.classSituation">
		   					<option value="平房">平房</option>
		   					<option value="普通住宅">普通住宅</option>
		   					<option value="公寓">公寓</option>
		   					<option value="商住两用">商住两用</option>
		   					<option value="别墅">别墅</option>
		   					<option value="其他">其他</option>
		   					</select>
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>家电配备</span></th>
					<td>
						<ul class="sub" id="checkItem">
			   				<li><input type="checkbox" name="equipment" value="床"checked/>床</li>
				  			<li><input type="checkbox" name="equipment" value="衣柜"/>衣柜</li>
				  			<li><input type="checkbox" name="equipment"  value="沙发" checked/>沙发</li>
				  			<li><input type="checkbox" name="equipment" value="冰箱"/>冰箱</li>
				  			<li><input type="checkbox" name="equipment" value="洗衣机"/>洗衣机</li>
				  			<li><input type="checkbox" name="equipment" value="空调"/>空调</li>
				  			<li><input type="checkbox" name="equipment" value="热水器"/>热水器</li>
				  			<li><input type="checkbox" name="equipment" value="宽带"/>宽带</li>
				  			<li><input type="checkbox" name="equipment" value="暖气"/>暖气</li>
				  			<li><input type="checkbox" name="equipment" value="电视"/>电视</li>
				  			<a class="chose-all btn btn-default">全选</a>
				  		</ul>							   								
	    				<span></span>
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>租金</span></th>
					<td>
						<label>
		   					<input type="text" class="form-control num-only" style="width:80px;" name="house.price" value="1000"/>
		   				元/月
		   				</label>
						
					</td>
				</tr>
				<tr>
					
				</tr>
				<tr>
					<th><em>*</em><span>描述</span></th>
					<td>
						<textarea class="form-control required" rows="5" style="width:80%" name="house.details" >这是一间宿舍</textarea>
					</td>
				</tr>
				<tr>
					<th><em>*</em><span>上传照片</span></th>
					<td>
							<label for="" class="fileContainer btn btn-default">
					选择文件
						<input type="file" name="photoUrl" multiple />
					</label>
						<span>最多只能上传8张，最大10MB</span>
					</td>
				</tr>
				
			</tbody>
		</table>
		<a type="submit" class="btn btn-danger btn-lg pull-right" id="submit">	确认并发布</a>
	</form>
</div>
